import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
// import reportWebVitals from './reportWebVitals'
import '@/assets/styles/index.scss'
// 导入路由对象
import { HashRouter as Router } from 'react-router-dom'
// 导入store
import store from '@/store'
// 创建Provider
import { Provider } from 'react-redux'
// !代表非空断言
const root = ReactDOM.createRoot(document.getElementById('root')!)
root.render(
  <React.StrictMode>
    <Provider store={store}>
      <Router>
        <App />
      </Router>
    </Provider>
  </React.StrictMode>
)
// reportWebVitals()
